import {
    Enum
} from '../utils/enum';
import {
    STATIC_PREFIX
} from '../app.config';


export const alarmOptions = Enum({
    "0": [{
            "text": "全部",
            "value": "全部"
        },
        {
            "text": "计步告警",
            "value": "计步告警"
        },
        {
            "text": "心率告警",
            "value": "心率告警"
        },
        {
            "text": "血压告警",
            "value": "血压告警"
        },
        {
            "text": "离开围栏告警",
            "value": "离开围栏告警"
        },
        {
            "text": "血氧告警",
            "value": "血氧告警"
        },
        {
            "text": "体温告警",
            "value": "体温告警"
        },
        {
            "text": "低电告警",
            "value": "低电告警"
        },
        {
            "text": "SOS告警",
            "value": "SOS告警"
        },
        {
            "text": "离线告警",
            "value": "离线告警"
        }
    ],
    "1": [{
            "text": "全部",
            "value": "全部"
        },
        {
            "text": "掉电告警",
            "value": "掉电告警"
        },
        {
            "text": "气体泄漏告警",
            "value": "气体泄漏告警"
        },
        {
            "text": "传感器错误告警",
            "value": "传感器错误告警"
        },
        {
            "text": "离线告警",
            "value": "离线告警"
        },
        {
            "text": "失效告警",
            "value": "失效告警"
        }
    ],
    "2": [{
            "text": "全部",
            "value": "全部"
        },
        {
            "text": "跌倒告警",
            "value": "跌倒告警"
        },
        {
            "text": "滞留告警",
            "value": "滞留告警"
        },
        {
            "text": "离线告警",
            "value": "离线告警"
        }
    ],
    "5": [{
            "text": "全部",
            "value": "全部"
        },
        {
            "text": "SOS告警",
            "value": "SOS告警"
        },
        {
            "text": "低电告警",
            "value": "低电告警"
        },
        {
            "text": "离线告警",
            "value": "离线告警"
        }
    ],
    "6": [{
            "text": "全部",
            "value": "全部"
        },
        {
            "text": "SOS告警",
            "value": "SOS告警"
        },
        {
            "text": "离线告警",
            "value": "离线告警"
        },
        {
            "text": "低电告警",
            "value": "低电告警"
        }
    ],
    "7": [{
            "text": "全部",
            "value": "全部"
        },
        {
            "text": "SOS告警",
            "value": "SOS告警"
        },
        {
            "text": "低电告警",
            "value": "低电告警"
        }
    ],
    "8": [{
            "text": "全部",
            "value": "全部"
        },
        {
            "text": "低电告警",
            "value": "低电告警"
        },
        {
            "text": "高血压告警",
            "value": "高血压告警"
        },
        {
            "text": "脉搏告警",
            "value": "脉搏告警"
        }
    ],
    "9": [{
            "text": "全部",
            "value": "全部"
        },
        {
            "text": "低电告警",
            "value": "低电告警"
        },
        {
            "text": "高血糖告警",
            "value": "高血糖告警"
        },
        {
            "text": "低血糖告警",
            "value": "低血糖告警"
        }
    ],
    "13": [{
        "text": "全部",
        "value": "全部"
    }, {
        "text": "离线告警",
        "value": "离线告警"
    }, {
        "text": "滞留告警",
        "value": "滞留告警"
    }, {
        "text": "长时间无活动告警",
        "value": "长时间无活动告警"
    }],
    "14": [{
        "text": "全部",
        "value": "全部"
    }, {
        "text": "离线告警",
        "value": "离线告警"
    }],
    "1000": [{
            "text": "全部",
            "value": "全部"
        },
        {
            "text": "计步告警",
            "value": "计步告警"
        },
        {
            "text": "心率告警",
            "value": "心率告警"
        },
        {
            "text": "血压告警",
            "value": "血压告警"
        },
        {
            "text": "离开围栏告警",
            "value": "离开围栏告警"
        },
        {
            "text": "血氧告警",
            "value": "血氧告警"
        },
        {
            "text": "体温告警",
            "value": "体温告警"
        },
        {
            "text": "低电告警",
            "value": "低电告警"
        },
        {
            "text": "SOS告警",
            "value": "SOS告警"
        },
        {
            "text": "掉电告警",
            "value": "掉电告警"
        },
        {
            "text": "气体泄漏告警",
            "value": "气体泄漏告警"
        },
        {
            "text": "传感器错误告警",
            "value": "传感器错误告警"
        },
        {
            "text": "离线告警",
            "value": "离线告警"
        },
        {
            "text": "失效告警",
            "value": "失效告警"
        },
        {
            "text": "跌倒告警",
            "value": "跌倒告警"
        },
        {
            "text": "滞留告警",
            "value": "滞留告警"
        },
        {
            "text": "高血糖告警",
            "value": "高血糖告警"
        },
        {
            "text": "低血糖告警",
            "value": "低血糖告警"
        },
        {
            "text": "高血压告警",
            "value": "高血压告警"
        },
        {
            "text": "脉搏告警",
            "value": "脉搏告警"
        },
        {
            "text": "长时间无活动告警",
            "value": "长时间无活动告警"
        }
    ]
})

export const deviceTypeOptions = [{
    text: '全部',
    value: '1000'
}, {
    text: '腕表',
    value: 0
}, {
    text: '燃气报警器',
    value: 1
}, {
    text: '跌倒监测守护仪',
    value: 2
}, {
    text: '独立式一键报警器',
    value: 5
}, {
    text: '报警网关',
    value: 6
}, {
    text: '一键报警器按键',
    value: 7
}, {
    text: '智能血压计',
    value: 8
}, {
    text: '智能血糖仪',
    value: 9
}, {
    text: '人体存在感知仪',
    value: 13
}, {
    text: '睡眠监测守护仪',
    value: 14
}]

export const deviceBindList = [{
    title: '健康监测',
    children: [{
        url: STATIC_PREFIX + '/static/device/X5.png',
        device_name: '腕表X5',
        product_type: 'X5',
        is_online: true,
        device_type: 0
    }, {
        url: STATIC_PREFIX + '/static/device/X1.png',
        device_name: '腕表X1',
        product_type: 'X1',
        is_online: true,
        device_type: 0
    }, {
        url: STATIC_PREFIX + '/static/device/TWC1.png',
        device_name: '天与腕表TWC1',
        product_type: 'TWC1',
        is_online: true,
        device_type: 0
    }, {
        url: STATIC_PREFIX + '/static/device/T808.png',
        device_name: '智能血糖仪T808',
        product_type: 'T808',
        is_online: true,
        device_type: 9
    }, {
        url: STATIC_PREFIX + '/static/device/X2A.png',
        device_name: '智能血压计X2A',
        product_type: 'X2A',
        is_online: true,
        device_type: 8
    }, {
        url: STATIC_PREFIX + '/static/device/A666G.png',
        device_name: '智能血压计A666G',
        product_type: 'A666G',
        is_online: true,
        device_type: 8
    }, {
        url: STATIC_PREFIX + '/static/device/G777G.png',
        device_name: '智能血糖仪G777G',
        product_type: 'G777G',
        is_online: true,
        device_type: 9
    }, {
        url: STATIC_PREFIX + '/static/device/YE620AR.png',
        device_name: '智能血压计YE620AR',
        product_type: 'YE620AR',
        is_online: true,
        device_type: 8
    }, {
        url: STATIC_PREFIX + '/static/device/302G.png',
        device_name: '智能血糖仪302G',
        product_type: '302G',
        is_online: true,
        device_type: 9
    }, {
        url: STATIC_PREFIX + '/static/device/SM_T.png',
        device_name: '睡眠监测守护仪SM_T',
        product_type: 'SM_T',
        is_online: true,
        device_type: 14
    }]
}, {
    title: '安全看护',
    children: [{
        url: STATIC_PREFIX + '/static/device/R2.png',
        device_name: '燃气报警器R2',
        product_type: 'R2',
        is_online: true,
        device_type: 1
    }, {
        url: STATIC_PREFIX + '/static/device/R6.png',
        device_name: '燃气报警器R6',
        product_type: 'R6',
        is_online: true,
        device_type: 1
    }, {
        url: STATIC_PREFIX + '/static/device/DX1.png',
        device_name: '跌倒监测守护仪DX1',
        product_type: 'DX1',
        is_online: true,
        device_type: 2
    }, {
        url: STATIC_PREFIX + '/static/device/DD_T.png',
        device_name: '跌倒监测守护仪DD_T',
        product_type: 'DD_T',
        is_online: true,
        device_type: 2
    }, {
        url: STATIC_PREFIX + '/static/device/DL1.png',
        device_name: '独立式一键报警器DL1',
        product_type: 'DL1',
        is_online: true,
        device_type: 5
    }, {
        url: STATIC_PREFIX + '/static/device/DL2.png',
        device_name: '独立式一键报警器DL2',
        product_type: 'DL2',
        is_online: true,
        device_type: 5
    }, {
        url: STATIC_PREFIX + '/static/device/TZ1.png',
        device_name: '报警网关TZ1',
        product_type: 'TZ1',
        is_online: true,
        device_type: 6
    }, {
        url: STATIC_PREFIX + '/static/device/RC_T.png',
        device_name: '人体存在感知仪RC_T',
        product_type: 'RC_T',
        is_online: true,
        device_type: 13
    }, {
        url: STATIC_PREFIX + '/static/device/E2201.png',
        device_name: '看护定位器E2201',
        product_type: 'E2201',
        is_online: false
    }]
}]

export const Devices = Enum({
    A666G: {
        imageUrl: STATIC_PREFIX + '/static/device/A666G.png',
        deviceName: '智能血压计 A666G',
        productType: 'A666G',
        isOnline: true,
        deviceType: 8,
        pdfUrl: STATIC_PREFIX + '/useInstruction/A666G.pdf'
    },
    DL1: {
        imageUrl: STATIC_PREFIX + '/static/device/DL1.png',
        deviceName: '独立式一键报警器DL1',
        productType: 'DL1',
        isOnline: true,
        deviceType: 5,
        pdfUrl: STATIC_PREFIX + '/useInstruction/DL1.pdf'
    },
    DL2: {
        imageUrl: STATIC_PREFIX + '/static/device/DL2.png',
        deviceName: '独立式一键报警器DL2',
        productType: 'DL2',
        isOnline: true,
        deviceType: 5,
        pdfUrl: STATIC_PREFIX + '/useInstruction/DL2.pdf'
    },
    DX1: {
        imageUrl: STATIC_PREFIX + '/static/device/DX1.png',
        deviceName: '跌倒监测守护仪DX1',
        productType: 'DX1',
        isOnline: true,
        deviceType: 2,
        pdfUrl: STATIC_PREFIX + '/useInstruction/DX1.pdf'
    },
    G777G: {
        imageUrl: STATIC_PREFIX + '/static/device/G777G.png',
        deviceName: '智能血糖仪 G777G',
        productType: 'G777G',
        isOnline: true,
        deviceType: 9,
        pdfUrl: STATIC_PREFIX + '/useInstruction/G777G.pdf'
    },
    T808: {
        imageUrl: STATIC_PREFIX + '/static/device/T808.png',
        deviceName: '智能血糖仪 T808',
        productType: 'T808',
        isOnline: true,
        deviceType: 9,
        pdfUrl: STATIC_PREFIX + '/useInstruction/T808.pdf'
    },
    TZ1: {
        imageUrl: STATIC_PREFIX + '/static/device/TZ1.png',
        deviceName: '报警网关TZ1',
        productType: 'TZ1',
        isOnline: true,
        deviceType: 6,
        pdfUrl: STATIC_PREFIX + '/useInstruction/TZ1.pdf'
    },
    X2A: {
        imageUrl: STATIC_PREFIX + '/static/device/X2A.png',
        deviceName: '智能血压计 X2A',
        productType: 'X2A',
        isOnline: true,
        deviceType: 8,
        pdfUrl: STATIC_PREFIX + '/useInstruction/X2A.pdf'
    },
    X1: {
        imageUrl: STATIC_PREFIX + '/static/device/X1.png',
        deviceName: '腕表 X1',
        productType: 'X1',
        isOnline: true,
        deviceType: 0,
        pdfUrl: STATIC_PREFIX + '/useInstruction/X1.pdf'
    },
    X5: {
        imageUrl: STATIC_PREFIX + '/static/device/X5.png',
        deviceName: '腕表 X5',
        productType: 'X5',
        isOnline: true,
        deviceType: 0,
        pdfUrl: STATIC_PREFIX + '/useInstruction/X1.pdf'
    },
    YE620AR: {
        imageUrl: STATIC_PREFIX + '/static/device/YE620AR.png',
        deviceName: '智能血压计 YE620AR',
        productType: 'YE620AR',
        isOnline: true,
        deviceType: 8,
        pdfUrl: STATIC_PREFIX + '/useInstruction/YE620AR.pdf'
    },
    '302G': {
        imageUrl: STATIC_PREFIX + '/static/device/302G.png',
        deviceName: '智能血糖仪 302G',
        productType: '302G',
        isOnline: true,
        deviceType: 9,
        pdfUrl: STATIC_PREFIX + '/useInstruction/302G.pdf'
    }
})